﻿/// <summary>
/// <Filename>: Motion.MotionPlatform.MotionPlatformData.cs
/// Author: Jiang Xiaolong
/// Created: 2015.02.27
/// Version: 1.0
/// Company: Sunnytech
/// Function: MotionPlatform中记录一些全局变量用；
///
/// Changed By:
/// Modification Time:
/// Discription:
/// <summary>
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

namespace Motion.MotionPlatform
{
	public class MotionPlatformData
	{
		//当前任务名称，用于索引到相应的资源文件
		public static string taskName = "";
		//当前任务的根目录
		public static string taskRootPath = "";
		//功能表根目录
		public static string dataRootPath = "";
		//当前表格名字
		public static string excelName = "C1";
		//主表当前行号
		public static int mainRowNumber = 0;

		//状态参数
		public static MotionPlatformState currentMotion = MotionPlatformState.Teaching;  //当前的运动状态
		public static MotionPlatformMovement curentMode = MotionPlatformMovement.Chai;  //当前运动方式

		//Excel和Camera运动通用参数，来自ToolsVariable.xls
		//安全高度
		public static float safeHeight = 1.0f;
		//程序中在默认条件下物体移动的统一速度
		public static float toolMoveSpeed = 1.0f;
		//程序中在默认条件下物体旋转的统一速度
		public static float toolRotateSpeed = 60.0f;
		//程序中在默认条件下铜棒名字
		public static string copperName = "T02_1";
		//程序中在默认条件下铜棒的敲击速度
		public static float copperHitSpeed = 1.0f;
		//程序中在默认条件下铜棒敲击一次前进的距离
		public static float copperForwardDis = 1.0f;
		//程序中在默认条件下铜棒用Y轴负方向敲击其他物体
		public static Vector3 copperVector = new Vector3(0f, -1f, 0f);
		//程序中在默认条件下扳手拧紧、拧松螺钉时每次换角度退出的距离
		public static float wrenchBackDis = 0.05f;
		//程序中在默认条件下扳手拧进、拧出的速度
		public static float wrenchSpeed = 60f;
		//程序中在默认条件下拧松、拧紧螺钉每次移动的距离系数
		public static float screwBackRate = 0.0002F;
		//程序中在默认条件下拧进、拧出每圈移动距离系数
		public static float rotateDegreeRate = 0.0025F;
		//摄像机直线速度
		public static float cameraLineSpeed = 0;
		//摄像机角速度
		public static float cameraAngleSpeed = 0;

		//反射用脚本
		public static MonoBehaviour doLableClass = null;
		public static MonoBehaviour st_ReflectionManager = null;
		public static MonoBehaviour st_Transparent = null;
		public static MonoBehaviour st_HightLighting = null;
		public static MonoBehaviour st_minmap = null;

		//工具预存位置信息管理类
		public static ToolsManager toolsManager = new ToolsManager();

		//挂载主脚本的物体名
		public static string MainScript_Obj = "MainScript";
		//主相机
		public static string mainCameraStr = "Main Camera";
		//画中画相机
		public static string pip_camera = "Minmap_Camera";

		/* *******************************
		 * StreamingAssets文件夹路径参数部分；
		 * ******************************/
		public const string errorConfiguration = "/ErrorConfiguration/ErrorLocation.txt";  //错误信息索引
		public const string equipmentSettings = "/EquipmentSettings/EquipmentList.json";  //设备列表设置文件路径
	}
}
